
import React, {Component} from 'react';
import { StyleSheet, 
  Text, 
  View, 
  Image, 
  TouchableOpacity
} from 'react-native';
import Cell from '@/components/Cell'
import { jumpPage } from '@/util/common'
export default class Comp extends Component{
  static navigationOptions = ({ navigation }) =>{
    return{
      title:'组件',
    }
  };
  _cellPress(type){
    let page 
    if(type == 1) page = 'imageUpload'
    jumpPage(this.props.navigation, page)
  }
  render(){
    return(
      <View>
        <Cell title="图片上传" press={()=>this._cellPress(1)}/>
        <Cell title="列表上拉刷新" press={()=>this._cellPress(2)}/>
      </View>
    )
  }
}